package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_user")
public class UserBean {
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer id;
    @TableField("u_name")
    private String name;
    @TableField("u_pwd")
    private String password;
    @TableField("u_dept")
    private String dept;
    @TableField("u_work")
    private String work;
    @TableField("u_realName")
    private String realName;

    public UserBean() {
    }

    public UserBean(String name, String password, String dept, String work) {
        this.name = name;
        this.password = password;
        this.dept = dept;
        this.work = work;
    }

    public UserBean(Integer id, String name, String password, String dept, String work) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.dept = dept;
        this.work = work;
    }


    public UserBean(Integer id, String realName,String dept,String work) {
        this.id = id;
        this.realName = realName;
        this.dept= dept;
        this.work=work;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDept() {
        return dept;
    }

    public void setDept(String dept) {
        this.dept = dept;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", dept='" + dept + '\'' +
                ", work='" + work + '\'' +
                ", realName='" + realName + '\'' +
                "}\n";
    }
}
